home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / BBS / CIDBNK11.ZIP / CIDBINK.DOC < prev    next >
Encoding:
Text File  |  1996-03-07  |  6.9 KB  |  163 lines

  1. ═══════════════════════════════════════════════════════════════════════════════
  2.                                 CIDBINK v1.1 Copyright (c) 1996
  3.   From the RBBS/CDOR Files of   By: Daniel T. Drinnon * All Rights Reserved
  4.   The Cellar Door RBBS/CDOR     ═══════════════════════════════════════════════
  5.   Sysop: Dan Drinnon            Purpose:  To extract CID info
  6.   Home of the CDOR Mods!        from your BinkleyTerm log file
  7.                                 for use with BBS's that handle CID
  8. ═══════════════════════════════════════════════════════════════════════════════
  9. Usage:    CIDBINK [ConfigFile]
  10.  
  11.           ConfigFile is optional.  The default ConfigFile name is 
  12.           CIDBINK.CFG in the current directory.
  13.  
  14. ═══════════════════════════════════════════════════════════════════════════════
  15. Included Files:
  16.  
  17. FILE_ID  DIZ     description file
  18. CIDBINK  EXE     the program
  19. CIDBINK  DOC     this documentation
  20. CIDBINK  CFG     sample configuration file
  21. ═══════════════════════════════════════════════════════════════════════════════
  22.  
  23. Usage:
  24. ══════
  25. CIDBINK will read your BINKLEY.LOG file for the CID strings you set in its 
  26. configuration file.  The LAST CID info it finds in the log file will then be 
  27. written to an output file you specify (normally a batch-type file) that can 
  28. execute to set environment variables for use with other programs.  The 
  29. format of the output file is controlled by what you set in the CIDBINK.CFG 
  30. file.  The included CIDBINK.CFG file here will create a file called 
  31. SETCID.BAT that contains DOS SET commands that can be used by your BBS 
  32. program's command line.  Since I only know of one BBS package (RBBS/CDOR) 
  33. that handles CID, this program leans towards that end for explaination and 
  34. usage, however I do believe it could be easily adapted to any other BBS 
  35. program out there that takes CID info on the command line.
  36.  
  37. Because the CIDBINK execution is a child process of your operating system, 
  38. it cannot alter the environment to the effect that it will change or create 
  39. new DOS envirornment variables when it is finished.  The technical reason is 
  40. explained simply that DOS gives a copy of the environment to a program which 
  41. the program is free to do whatever it wants with, leaving the parent 
  42. process's environment unaltered.  When the child process terminates, it's 
  43. copy of the environment is discarded and the parent environment is again 
  44. active.  The solution is to have CIDBINK create an output file which you 
  45. could run after CIDBINK is finished that will do whatever you want at the 
  46. parent process level.  If this doesn't make sense, go to the library and 
  47. find Ray Duncan's book "Advanced MSDOS Programming".
  48.  
  49. To avoid confusion, here is a general flow of operation in DOS-Speak:
  50.  
  51.    1. BINKLEY.BAT is runs
  52.    2. Binkley gets a BBS caller and exits with an errorlevel
  53.    3. Binkley gives control to BBSBATCH.BAT
  54.    4. BBSBATCH gives control to SPAWNBBS.BAT
  55.    5. SPAWNBBS.BAT runs CIDBINK
  56.    6. SPAWNBBS.BAT runs SETCID.BAT which was created by CIDBINK
  57.    7. SPAWNBBS.BAT runs the BBS
  58.    8. goto top, BINKLEY.BAT runs again
  59.  
  60. Here is how it would look in reality AFTER Binkley exits to run BBSBATCH.BAT,
  61. with BBSBATCH.BAT running SPAWNBBS.BAT and then SPAWNBBS.BAT running RBBS/CDOR:
  62.  
  63. [BINKLEY.BAT->BBSBATCH.BAT->SPAWNBBS.BAT]:
  64.  
  65. @ECHO OFF
  66. C:\BINKLEY\CIDBINK C:\BINKLEY\NODE1\BINKLEY.LOG
  67. CALL C:\BINKLEY\NODE1\SETCID.BAT
  68. CD\RBBS
  69. CALL RBBS.BAT %4 %1 %2 %5
  70. SET CIDNMBR=
  71. SET CIDNAME=
  72. CD\BINKLEY
  73. BINKLEY
  74.  
  75. [RBBS.BAT]: (simplified)
  76. @ECHO OFF
  77. RBBS-PC.EXE %node% RBBS%node%PC.DEF /T:%1 /B:%2 /C:%3 /R:%4 /I:NAME=%CIDNAME% NMBR=%CIDNMBR%
  78.  
  79. Notes:
  80. ══════
  81. 1. To free up DOS environment space, CIDNMBR and CIDNAME are nulled out in 
  82. the SPAWNBBS.BAT file shown above after they are no longer needed.
  83.  
  84. 2. You should configure your modem to return formated as opposed to raw text 
  85. output for the CID info for your binkley log.
  86.  
  87. 3. Although everyone has their idea of the best USR V.Everything init string 
  88. for Binkley, I show mine here only for those who need more information.  I 
  89. know there are other ways to init the modem, but these work for me and like 
  90. they say, if it ain't broke....:
  91.  
  92. [BINKLEY.CFG portions removed]:
  93. NoFilter /
  94. ExtBaudRates
  95. ModemConnect  CONNECT
  96. ModemFailure  BUSY
  97. ModemFailure  ERROR
  98. ModemFailure  NO ANSWER
  99. ModemFailure  NO CARRIER
  100. ModemIncoming NO DIAL TONE
  101. ModemFailure  OK
  102. ModemFailure  VOICE
  103. ModemIgnore   +FDM
  104. ModemIgnore   RINGING
  105. ModemIgnore   RING RESPONSE
  106. ModemIgnore   DIALING
  107. ModemIgnore   RRING
  108. ModemIgnore   DIAL TONE
  109. ModemRinging  RING
  110. Port      1
  111. Baud      57600
  112. Carrier   80
  113. TermInit   AT&FM1X4Q0V1&A3|~AT&B1&C1&D2&H1|~AT&K3&R2&S1&T5|AT&ZC=+FCLASS=0H1|~ATS0=0S2=255|~ATS7=45S10=20S11=45|~ATS15=72S19=5S38=1|~ATS69=0S70=0#CID=0|~AT&W|
  114. Init      v^ATZ|ATB0M1&M4X4H0|AT+FCLASS=0|AT#CID=1|
  115. Prefix    AT+FCLASS=0&K3DT
  116. Answer    ~~AT+FCLASS=2\.0|~AT+FAA=1+FLI="703 913 5621"+FNR=1,1,1;B0A|
  117. Busy      AT+FCLASS=0H1|
  118. ModemFax  +FCO
  119. ExtrnMail 99 +FCO
  120. DTRHigh
  121. LockBaud /Arq
  122. AutoBaud
  123.  
  124. I use Binkley's Terminal to actually perform a full initialization instead
  125. of using it as an actual terminal program.
  126.  
  127. Binkley's Recent Activity screen will say "No Answer" right after displaying
  128. the CID info, however this doesn't seem to have an adverse affect on its
  129. operation.
  130.  
  131. This configuration also uses the adaptive answering mode to handle incoming 
  132. FAX calls.
  133.  
  134. ═══════════════════════════════════════════════════════════════════════════════
  135. Revisions: 03-01-96 Initial Release
  136.            03-08-96 Added handling of Unavailable CID Info
  137.                     Fixed up the docs
  138.                     Added short program info display
  139. ═══════════════════════════════════════════════════════════════════════════════
  140. DANIEL T. DRINNON IS NOT RESPONSIBLE TO YOU FOR DAMAGES, INCLUDING BUT NOT
  141. LIMITED TO, ANY LOST PROFITS, LOST MONIES, OR OTHER SPECIAL, GENERAL, INCIDENTAL 
  142. OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE (INCLUDING 
  143. BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES 
  144. SUSTAINED BY THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 
  145. PROGRAMS) OR ANY OTHER LOSS EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF 
  146. SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
  147. ════════════════════════════════════════════════════════════════════════════════
  148. BinkleyTerm is copyright by Bit Bucket Software Co.
  149. ════════════════════════════════════════════════════════════════════════════════
  150. Liscense:  You are authorized to USE this program for an indefinite period
  151.            of time without fee.  This program may be included on CD-ROM's as
  152.            part of a collection of files as long as it is included in its
  153.            entirity.
  154. ════════════════════════════════════════════════════════════════════════════════
  155. Dan Drinnon
  156. The Cellar Door RBBS/CDOR
  157. Download on First Call!
  158. 703-913-5621 (V.Everything)
  159. 703-913-5624 (14.4)
  160. FidoNet: 1:109/331
  161. ════════════════════════════════════════════════════════════════════════════════
  162.  
  163.